package com.sky.employee;

import com.sky.entity.Employee;
import com.sky.properties.JwtProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//@EnableTransactionManagement //开启注解方式的事务管理
//开启扫描配置
@EnableConfigurationProperties(JwtProperties.class)
@Slf4j
public class EmployeeApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(EmployeeApplication.class, args);

        /*System.out.println("EmployeeApplication加载的Bean有:");
        String[] beanDefinitionNames = context.getBeanDefinitionNames();
        for (String name : beanDefinitionNames) {
            System.err.println(name);
        }*/

        log.info("server started EmployeeApplication server...");
    }
}
